﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BDD.TicTacToe.Acceptance.Tests.PageObjects;
using BDD.TicTacToe.Acceptance.Tests.Utilities;
using NUnit.Framework;
using TechTalk.SpecFlow;

namespace BDD.TicTacToe.Acceptance.Tests.Steps
{
    [Binding]
    public class NavigationSteps
    {
        [Given(@"I am on the ""(.*)""")]
        public void GivenIAmOnThe(string page)
        {
            Navigator.GoToGameWelcomePage();

            var pageTitle = WelcomePage.Title;

            Assert.That(pageTitle, Is.EqualTo("Welcome to Tic-Tac-Toe"));
        }
    }
}
